#ifndef _EEPROM_UTILS_H_
#define _EEPROM_UTILS_H_

#include <eeprom.h>

#define EEP_ADDR_SIZE 8
#if EEP_ADDR_SIZE == 8
typedef unsigned char eepaddr_t;
#else
typedef unsigned short eepaddr_t;
#endif

unsigned short read_short_eeprom( eepaddr_t addr );
unsigned long eeprom_uint24_read( eepaddr_t addr );

//void eeprom_uint8_write(eepaddr_t addr, unsigned char data);
#define eeprom_uint8_write eeprom_write
void eeprom_uint24_write(eepaddr_t addr, unsigned long data);

#endif
